How to read baseline module

I have a few objects that links from a baseline of another module (not current).

The following code opens the current module and not the baseline:

read(fullName(target(lnk)), true)

How can I follow the inlink to open the target baseline?

Thanks in advance.
DOORS_USER - Tue Jun 29 17:55:00 EDT 2010

Re: How to read baseline module
a_vestlin - Wed Jun 30 03:14:07 EDT 2010

Use this to open the correct version:

Module openTheBaseline(Link l)
{
   ModuleVersion mv = targetVersion(l)
   return(load(mv, true))
}


You need to insert some controls for null values and so on.

Re: How to read baseline module
DOORS_USER - Wed Jun 30 09:08:40 EDT 2010

a_vestlin - Wed Jun 30 03:14:07 EDT 2010

Use this to open the correct version:

Module openTheBaseline(Link l)
{
   ModuleVersion mv = targetVersion(l)
   return(load(mv, true))
}


You need to insert some controls for null values and so on.

Cool.

targetVersion() was the missing link.

Worked like a charm. Thanks again.